package top.codedance.iotp.server.net.handle;

import cd.io.netty.channel.ChannelHandlerContext;
import cd.io.netty.handler.codec.http.FullHttpRequest;
import cd.io.netty.handler.codec.http.websocketx.WebSocketFrame;

public interface WsMsgHandler {
    /**
     *
     * @param wsChannelHandler
     * @param clientId
     * @param channelHandlerContext
     * @param msg
     * @throws Exception
     */
    void channelRead(WsChannelHandler wsChannelHandler, String clientId, ChannelHandlerContext channelHandlerContext, FullHttpRequest request, byte[] msg) throws Exception;
}
